﻿namespace AutoPatientInfoRecorder
{
    public class PatientInfo : AntdUI.NotifyProperty
    {
        public PatientInfo(string name, string sex, int age, string address, string doctor, string res, double fee)
        {
            _name = name;
            _sex = sex;
            _age = age;
            _address = address;
            _doctor = doctor;
            _res = res;
            _fee = fee;
        }
        bool _check = false;
        public bool Check
        {
            get => _check;
            set
            {
                if (_check == value) return;
                _check = value;
            }
        }
        string _name;
        public string Name
        {
            get => _name;
            set
            {
                if (_name == value) return;
                _name = value;
            }
        }
        string _sex;
        public string Sex
        {
            get => _sex;
            set
            {
                if (_sex == value) return;
                _sex = value;
            }
        }
        int _age;
        public int Age
        {
            get => _age;
            set
            {
                if (_age == value) return;
                _age = value;
            }
        }
        string _address;
        public string Address
        {
            get => _address;
            set
            {
                if (_address == value) return;
                _address = value;
            }
        }
        string _doctor;
        public string Doctor
        {
            get => _doctor;
            set
            {
                if (_doctor == value) return;
                _doctor = value;
            }
        }
        string _res;
        public string Res
        {
            get => _res;
            set
            {
                if (_res == value) return;
                _res = value;
            }
        }
        double _fee;
        public double Fee
        {
            get => _fee;
            set
            {
                if (_fee == value) return;
                _fee = value;
            }
        }
    }
}
